import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/sys/customer/${url}`, ...arg)
/**
 * 客户信息
 *
 * @author mh
 * @date 2022-09-22 22:33:20
 */
export default {
	// 获取客户信息分页
	customerPage(data) {
		return request('CustomerPage', data, 'get')
	},
	// 新增客户信息
	customerSend(data) {
		return request('CustomerAdd', data)
	},
	// 删除客户信息
	customerDelete(data) {
		return request('Delete', data)
	},
	// 获取客户信息详情
	customerDetail(data) {
		return request('Edit', data)
	}
}
